public class DivToZero {
  public int lastTwo( int num, int factor ) {
    int new_num = (num/100) * 100；
      for ( int i = 0; i < 100; i++ ) {
        if ((new_num + i)%factor == 0 )
          return  i;
        }
        return 0;
  }
}